package cn.edu.mju.dilidili.modules.dynamic.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 动态信息表
 * </p>
 *
 * @author l
 * @since 2022-09-30
 */
@Getter
@Setter
@ApiModel(value = "Dynamic对象", description = "动态信息表")
public class Dynamic implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("发布时间")
    private Date creationTime;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("踩数量 -不想写")
    private Integer hateNumber;

    @ApiModelProperty("赞数量")
    private Integer actionNumber;

    @ApiModelProperty("转发数量(该数值只加不减, bilibili也这样设计)")
    private Integer forwardNumber;

    @ApiModelProperty("动态的作者")
    private Integer authorId;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("封面图")
    private String banner;

    @ApiModelProperty("评论数量")
    private Integer replyNumber;

    @ApiModelProperty("看过的人数量 每个人的看过次数每天刷新")
    private Integer viewNumber;

    @ApiModelProperty("作者名, 虽然违反了数据库范式, 但是可以增加冗余")
    private String authorName;

    @ApiModelProperty("动态预览文本")
    private String summary;


}
